package com.dhcc.core.modules.system.warpper;

import java.util.Map;

import com.dhcc.core.framework.base.warpper.BaseControllerWarpper;
import com.dhcc.core.modules.system.cache.user.UserCache;

/**
 * 部门列表的包装
 * 
 * @ClassName: NoticeWrapper
 * @Description: TODO
 * @author: cyf
 * @date: 2018年1月2日 上午10:43:34
 */
public class NoticeWrapper extends BaseControllerWarpper {

    public NoticeWrapper(Object list) {
        super(list);
    }

    @Override
    public void warpTheMap(Map<String, Object> map) {
        Long creater = (Long) map.get("createBy");
        map.put("createByName", UserCache.me().getUserNameById(creater));
    }

}
